-- GENERATED SPELL FOR [Conquest Hold Grunt] --


function spell0_27470(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_27470', 30292, 1)
end

function spell1_27470(pUnit, Event) --@Heroic Strike,n/a--
pUnit:FullCastSpellOnTarget(25710,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27470', 543, 1)
end

function spell2_27470(pUnit, Event) --@Intercept,n/a--
pUnit:FullCastSpellOnTarget(27577,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27470', 624, 1)
end

function Sorts_27470(pUnit, Event)
local choix_sorts_27470 = math.random(0, 2)
if choix_sorts_27470 == 0 then
pUnit:RegisterEvent('spell0_27470', 1, 1)
end
if choix_sorts_27470 == 1 then
pUnit:RegisterEvent('spell1_27470', 1, 1)
end
if choix_sorts_27470 == 2 then
pUnit:RegisterEvent('spell2_27470', 1, 1)
end
end

function mob27470_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27470', math.random(1500, 3000), 1)
end

function mob27470_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27470_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27470_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27470, 1, 'mob27470_Action')
RegisterUnitEvent(27470, 2, 'mob27470_Leave')
RegisterUnitEvent(27470, 3, 'mob27470_Kill')
RegisterUnitEvent(27470, 4, 'mob27470_Die')
